package zct.proj.pojo;

import java.util.ArrayList;
import java.util.HashMap;

public class StationInfo {

	// 概述
	private StationSummary summary;
	
	// 控件列表
	public ArrayList<EquipmentInfo> ctlList = new ArrayList<EquipmentInfo>();
	/**
	 * key : 开关名
	 * value : 开关值
	 */
	public HashMap<String, Switcher> switcherMap = new HashMap<String, Switcher>();
	/**
	 * key : jkxx.ini中的index
	 * value : 变更量对应的jkxx.ini中的index所对应的switcherMap中的value
	 */
	public HashMap<Integer, String> jkxxMap = new HashMap<Integer, String>();
	
	/**
	 * key : 逻辑开关量名称
	 * value : 逻辑开关类
	 */
	public HashMap<String, LogicSwitcher> lsMap = new HashMap<String, LogicSwitcher>();
//	/**
//	 * 记录开关量的高低电平
//	 */
//	public HashMap<Integer, Integer> jkxxStatus = new HashMap<Integer, Integer>();
	
	// 信号机控件序号列表
	public ArrayList<Integer> xhjIdxList = new ArrayList<Integer>();
	// 绝缘节控件序号列表
	public ArrayList<Integer> jyjIdxList = new ArrayList<Integer>();
	// 无岔区段控件序号列表
	public ArrayList<Integer> wcqdIdxList = new ArrayList<Integer>();
	// 道岔控件序号列表
	public ArrayList<Integer> dcIdxList = new ArrayList<Integer>();
	// 灯或按钮控件序号列表
	public ArrayList<Integer> dhanIdxList = new ArrayList<Integer>();
	// 道岔表示
	public ArrayList<Integer> dcbsIdxList = new ArrayList<Integer>();
	
//	// 开关变化量列表（例：洛阳站LYF.ini => JKXX.ini）
//	private ArrayList<Switcher> switcherList;
	
	public StationInfo() {
		
	}
	
	public void setStationSummary(StationSummary smy) {
		summary = smy;
	}
	
	public StationSummary getStationSummary() {
		return summary;
	}
	
	public ArrayList<EquipmentInfo> getCtlList() {
		return ctlList;
	}
	
	public void setCtlList(ArrayList<EquipmentInfo> list) {
		ctlList = list;
	}
	
//	public void setSwitcherMap(HashMap<String, Integer> map) {
//		switcherMap = map;
//	}
//	
//	public HashMap<String, Integer> getSwitcherMap() {
//		return switcherMap;
//	}
	
//	public void setSwitcherList(ArrayList<Switcher> list) {
//		switcherList = list;
//	}
//	
//	public ArrayList<Switcher> getSwitcherList() {
//		return switcherList;
//	}
	
	public EquipmentInfo getControl(int id) {
		return ctlList.get(id);
	}
}
